<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue"></script>
    <script>
        window.onland=function(){
            Vue.component('my-component', {
                template: '<div>A custom component!</div>'
            })

            new Vue({
                el: '#zj'
            })



        }

    </script>
</head>
<body>
<div id="zj">
    <my-component></my-component>

</div>

</body>
</html>